

#ifndef _CPU_PIN_CONFIGURATION_H
#define _CPU_PIN_CONFIGURATION_H

/***********************  LCD PIN CONFIGURATION **************************/
#define LCD_PORT 				GPIOB
#define LCD_CONTROL_PORT 		GPIOE
#define LCD_ENABLE_PIN		GPIO_PIN_7
#define LCD_RS_PIN 				GPIO_PIN_6

#define LCD_BL_PWR_PORT		GPIOE		
#define LCD_BL_PWR_PIN		GPIO_PIN_6

#define CGRAM_address_start		0x40

/********** MENU BUTTON PIN CONFIGURATION ***************/

#define MENU_BUTTON_PORT			GPIOD
#define MENU_BUTTON_PIN 			GPIO_PIN_0

#define CURSOR_BUTTON_PORT		GPIOE
#define CURSOR_BUTTON_PIN 		GPIO_PIN_5

#define START_BUTTON_PORT			GPIOB
#define START_BUTTON_PIN 			GPIO_PIN_6

#define STOP_BUTTON_PORT			GPIOD
#define STOP_BUTTON_PIN 			GPIO_PIN_3

#define UP_BUTTON_PORT			GPIOC
#define UP_BUTTON_PIN				GPIO_PIN_7

#define DOWN_BUTTON_PORT			GPIOD
#define DOWN_BUTTON_PIN 			GPIO_PIN_7

#define GPIOB_INPUT_PIN			(START_BUTTON_PIN)
#define GPIOC_INPUT_PIN			(UP_BUTTON_PIN)
#define GPIOD_INPUT_PIN			(MENU_BUTTON_PIN | STOP_BUTTON_PIN | DOWN_BUTTON_PIN)
#define GPIOE_INPUT_PIN			(CURSOR_BUTTON_PIN)













#endif